package com.irdstudio.efp.rule.service.vo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;

/**
 * 
 * 申请相关信息
 * 
 * @author Cytus_
 * @since 2018年5月6日 下午3:54:39
 * @version 1.0
 *
 */
public class ApplyEntity implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	//预授信期限
	private int preCreditTrem;
	
	/** 支用申请额 */
	private BigDecimal payUseApplyAmt;
	/** 合同剩余可用额 */
	private BigDecimal contLastCanUseAmt;
	/** 营销额度 */
	private BigDecimal marketAmt;
	/** 白名单导入预授信额度 */
	private BigDecimal preCreditAmt;
	/** 白名单最高信用额度 */
	private BigDecimal maxPreCreditAmt;
	/** 产品信息 */
	private PrdInfoEntity prdInfo;
	/** 省级限额 */
	private BigDecimal proLimit;
	
	public int getPreCreditTrem() {
		return preCreditTrem;
	}

	public void setPreCreditTrem(int preCreditTrem) {
		this.preCreditTrem = preCreditTrem;
	}

	public BigDecimal getPayUseApplyAmt() {
		return payUseApplyAmt;
	}

	public void setPayUseApplyAmt(BigDecimal payUseApplyAmt) {
		this.payUseApplyAmt = payUseApplyAmt;
	}

	public BigDecimal getContLastCanUseAmt() {
		return contLastCanUseAmt;
	}

	public void setContLastCanUseAmt(BigDecimal contLastCanUseAmt) {
		this.contLastCanUseAmt = contLastCanUseAmt;
	}

	public BigDecimal getMarketAmt() {
		return marketAmt;
	}

	public void setMarketAmt(BigDecimal marketAmt) {
		this.marketAmt = marketAmt;
	}

	public BigDecimal getPreCreditAmt() {
		if (Objects.isNull(preCreditAmt))
			preCreditAmt = new BigDecimal(0);
		return preCreditAmt;
	}

	public void setPreCreditAmt(BigDecimal preCreditAmt) {
		this.preCreditAmt = preCreditAmt;
	}

	public PrdInfoEntity getPrdInfo() {
		if (Objects.isNull(prdInfo))
			prdInfo = new PrdInfoEntity();
		return prdInfo;
	}

	public void setPrdInfo(PrdInfoEntity prdInfo) {
		this.prdInfo = prdInfo;
	}

	public BigDecimal getMaxPreCreditAmt() {
		if (Objects.isNull(maxPreCreditAmt)) 
			maxPreCreditAmt = new BigDecimal(0);
		return maxPreCreditAmt;
	}

	public void setMaxPreCreditAmt(BigDecimal maxPreCreditAmt) {
		this.maxPreCreditAmt = maxPreCreditAmt;
	}

	public BigDecimal getProLimit() {
		return proLimit;
	}

	public void setProLimit(BigDecimal proLimit) {
		this.proLimit = proLimit;
	}

}
